
#ifndef XPLAY_XLOG_H
#define XPLAY_XLOG_H

class XLog {

};
#ifdef ANDROID
#include <android/log.h>
#include <mutex>

#define XLOGD(...) __android_log_print(ANDROID_LOG_DEBUG,"SSPlay",__VA_ARGS__)
#define XLOGI(...) __android_log_print(ANDROID_LOG_INFO,"SSPlay",__VA_ARGS__)
#define XLOGE(...) __android_log_print(ANDROID_LOG_ERROR,"SSPlay",__VA_ARGS__)
#else
#define XLOGD(...) printf("XPlay",__VA_ARGS__)
#define XLOGI(...) printf("XPlay",__VA_ARGS__)
#define XLOGE(...) printf("XPlay",__VA_ARGS__)

#endif

#define toJ(handle) memory::jlongFromPointer((handle))
#define fromJ(type, handle) reinterpret_cast<type *>((handle))




#endif //XPLAY_XLOG_H
